home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 5 / Skunkware 5.iso / man / cat.3 / GetCapStyl.3 < prev    next >
Encoding:
Text File  |  1995-07-26  |  4.5 KB  |  133 lines

  1.  
  2.  
  3.  
  4.      TTTTkkkk____GGGGeeeettttCCCCaaaappppSSSSttttyyyylllleeee((((3333))))            TTTTkkkk (((( ))))             TTTTkkkk____GGGGeeeettttCCCCaaaappppSSSSttttyyyylllleeee((((3333))))
  5.  
  6.  
  7.  
  8.      _________________________________________________________________
  9.  
  10.      NNNNAAAAMMMMEEEE
  11.           Tk_GetCapStyle,  Tk_NameOfCapStyle   -   translate   between
  12.           strings and cap styles
  13.  
  14.      SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  15.           ####iiiinnnncccclllluuuuddddeeee <<<<ttttkkkk....hhhh>>>>
  16.  
  17.           int
  18.           TTTTkkkk____GGGGeeeettttCCCCaaaappppSSSSttttyyyylllleeee((((_i_n_t_e_r_p, _s_t_r_i_n_g, _c_a_p_P_t_r))))
  19.  
  20.           char *
  21.           TTTTkkkk____NNNNaaaammmmeeeeOOOOffffCCCCaaaappppSSSSttttyyyylllleeee((((_c_a_p))))
  22.  
  23.      AAAARRRRGGGGUUUUMMMMEEEENNNNTTTTSSSS
  24.           Tcl_Interp   *_i_n_t_e_r_p   (in)      Interpreter  to   use   for
  25.                                            error reporting.
  26.  
  27.           char         *_s_t_r_i_n_g   (in)      String containing  name  of
  28.                                            cap     style:    one    of
  29.                                            ```butt'',  ``projecting'',
  30.                                            or ``round''.
  31.  
  32.           int          *_c_a_p_P_t_r   (out)     Pointer  to   location   in
  33.                                            which  to store X cap style
  34.                                            corresponding to _s_t_r_i_n_g.
  35.  
  36.           int          _c_a_p       (in)      Cap style: one of  CCCCaaaappppBBBBuuuutttttttt,
  37.                                            CCCCaaaappppPPPPrrrroooojjjjeeeeccccttttiiiinnnngggg, or CCCCaaaappppRRRRoooouuuunnnndddd.
  38.      _________________________________________________________________
  39.  
  40.  
  41.      DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  42.           TTTTkkkk____GGGGeeeettttCCCCaaaappppSSSSttttyyyylllleeee  places  in   *_c_a_p_P_t_r   the   X   cap   style
  43.           corresponding  to  _s_t_r_i_n_g.   This  will be one of the values
  44.           CCCCaaaappppBBBBuuuutttttttt,  CCCCaaaappppPPPPrrrroooojjjjeeeeccccttttiiiinnnngggg,  or  CCCCaaaappppRRRRoooouuuunnnndddd.   Cap   styles   are
  45.           typically  used  in  X graphics contexts to indicate how the
  46.           end-points  of  lines  should  be   capped.    See   the   X
  47.           documentation for information on what each style implies.
  48.  
  49.           Under normal circumstances the return value  is  TTTTCCCCLLLL____OOOOKKKK  and
  50.           _i_n_t_e_r_p  is  unused.   If  _s_t_r_i_n_g doesn't contain a valid cap
  51.           style or an abbreviation of one  of  these  names,  then  an
  52.           error  message  is  stored  in  _i_n_t_e_r_p->_r_e_s_u_l_t, TTTTCCCCLLLL____EEEERRRRRRRROOOORRRR is
  53.           returned, and *_c_a_p_P_t_r is unmodified.
  54.  
  55.           TTTTkkkk____NNNNaaaammmmeeeeOOOOffffCCCCaaaappppSSSSttttyyyylllleeee is the logical inverse of  TTTTkkkk____GGGGeeeettttCCCCaaaappppSSSSttttyyyylllleeee.
  56.           Given  a  cap style such as CCCCaaaappppBBBBuuuutttttttt it returns a statically-
  57.           allocated string corresponding to _c_a_p.  If _c_a_p isn't a legal
  58.           cap style, then ``unknown cap style'' is returned.
  59.  
  60.  
  61.  
  62.  
  63.      Page 1                                          (printed 7/23/95)
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.      TTTTkkkk____GGGGeeeettttCCCCaaaappppSSSSttttyyyylllleeee((((3333))))            TTTTkkkk (((( ))))             TTTTkkkk____GGGGeeeettttCCCCaaaappppSSSSttttyyyylllleeee((((3333))))
  71.  
  72.  
  73.  
  74.      KKKKEEEEYYYYWWWWOOOORRRRDDDDSSSS
  75.           butt, cap style, projecting, round
  76.  
  77.  
  78.  
  79.  
  80.  
  81.  
  82.  
  83.  
  84.  
  85.  
  86.  
  87.  
  88.  
  89.  
  90.  
  91.  
  92.  
  93.  
  94.  
  95.  
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.      Page 2                                          (printed 7/23/95)
  130.  
  131.  
  132.  
  133.